using System;
using System.Collections.Generic;
using System.Windows.Forms;
using Belmost4PDA.Constants;
using Belmost4PDA.Fasade;

namespace Belmost4PDA.Logic
{
    public class Control_CheckBox : Control_PanelControl
    {
        private readonly HintCheckBox checkbox = new HintCheckBox();
        public Control_CheckBox(PanelItem panelItem)
            : base(panelItem)
        {
            checkbox.Text = panelItem.Caption;
            checkbox.Tag = panelItem;
        }

        public override string GetControlType()
        {
            return ControlType.CheckBox;
        }

        public override AbstractMapper GetMapper()
        {
            return new Mapper_CheckBox(this);
        }

        public override Control GetFormControl()
        {
            return checkbox;
        }

        public override string GetCaption()
        {
            return null;
        }
    }
}
